import request from '@/utils/request';

// 获取用户信息
export function getUserInfoPerson(params) {
  return request({
    url: '/user/detail',
    method: 'GET',
    params
  });
}

//获取用户歌单
export function getUserPlayInfo(params) {
  return request({
    url: '/user/playlist',
    method: 'GET',
    params
  });
}

//获取用户信息 , 歌单，收藏，mv, dj 数量
export function getSubcountInfo() {
  return request({
    url: '/user/subcount',
    method: 'GET'
  });
}
//添加/取消喜欢音乐 
export function getUserLike(params) {
  return request({
    url: '/like',
    method: 'GET',
    params
  });
}

// 获取用户关注列表
export function getUserFollows(params) {
  return request({
    url: '/user/follows',
    method: 'GET',
    params
  });
}
//喜欢音乐的列表 
export function getUserLikeList(params) {
  return request({
    url: '/likelist',
    method: 'GET',
    params
  });
}
//获取用户vip 信息
export function getVipInfo() {
  return request({
    url: '/vip/info',
    method: 'POST',
  });
}
